package com.by.goods.service;

import com.by.api.dto.CarDto;
import com.by.feign.dto.SkuDto;

import java.util.List;

public interface SkuService {
    /**
     * 根据id查询sku
     * @param id
     * @return
     */
    SkuDto querySku(int id);

    /**
     * 锁定库存
     * @param carDtoList
     * @return
     */
    int lockSkuStock(List<CarDto> carDtoList);
}
